<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>练习四</title>
</head>
<body>
  <script>
      var array = new Array(1,2,3,4,5);
      console.log(array);
      let str = "";
      for (let i = 0; i < array.length; i++) {
        str += array[i] + " ";
      }
      console.log(str)
  </script>
</body>
</html>